package com.hyk.aop;

import com.hyk.aop.marry;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) throws Throwable{

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("application.xml");
        marry proxy = (marry) applicationContext.getBean("you") ;

        //marry proxy = (marry)new MarryCompany(new You()).getProxy();


        proxy.domarry();
    }
}
